﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Shared/Seller.Master" Inherits="System.Web.Mvc.ViewPage<UserEditInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CssContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Style/Store.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
        <%using (Html.BeginForm())
          { %>
        <table  class="userinfo">
            <tr>
                <td class="tdlable">
                    <%=Html.HiddenFor(m => m.ID) %>
                    <%=Html.LabelFor(m=> m.Name) %>
                </td>
                <td>
                    <%=Html.TextBoxFor(m => m.Name)%>
                    <%=Html.ValidationMessageFor(m => m.Name)%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.Email)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(m => m.Email)%>
                    <%=Html.ValidationMessageFor(m => m.Email)%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.UserType)%>
                    <%=Html.HiddenFor(m => m.UserType) %>
                </td>
                <td>
                    <%
                      var userTypeName = "";
                      switch(Model.UserType)
                      {
                          case 1:
                              userTypeName = "厂商";
                              break;
                          case 2:
                              userTypeName = "代理商";
                              break;
                          case 3:
                              userTypeName = "摄影店";
                              break;
                          case 4:
                              userTypeName = "代发";
                              break;
                      }%>
                    <%=userTypeName%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.UserSex)%>
                </td>
                <td>
                    <%=Html.DropDownListFor(m => m.UserSex, new List<SelectListItem>() { new SelectListItem() { Text = "保密", Value = "0" }, new SelectListItem() { Text = "男", Value = "1" }, new SelectListItem() { Text = "女", Value = "2" } })%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                    <%=Html.LabelFor(m => m.ValidateCode)%>
                </td>
                <td>
                    <%=Html.TextBoxFor(m => m.ValidateCode, new  { style="width:70px"})%>
                    <img style="cursor: pointer;" src="/ValidateCode.aspx/VerifyImage" id="VerifyImage"
                        title="看不清？点击换一个" align="absmiddle" onclick="javascript:document.getElementById('VerifyImage').src='/ValidateCode.aspx/VerifyImage/'+Math.random();return false;" />
                    <%=Html.ValidationMessageFor(m => m.ValidateCode)%>
                </td>
            </tr>
            <tr>
                <td class="tdlable">
                </td>
                <td>
                    <input class="btn" type="submit" name="btnEditInfo" value="保存修改" />
                    <%=Html.ValidationMessage("ErrTips") %>
                </td>
            </tr>
        </table>
        <%}%>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="JsContent" runat="server">
</asp:Content>
